<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const m1 = new Map();
      m1.set("o1", { a: 1, b: 2 });
      const o2 = m1.get("o1");
      m1.set("o1", null);
      o2 = null;
      // console.log(o2);
    </script>
  </body>
</html>
